<template>
	<view>
		测试bus总线通信{{count}}
	</view>
</template>

<script>
	import {bus} from '../bus/bus.js'
	export default {
		name:"test-bus",
		data() {
			return {
				count:110
			};
		},
		created() {
			bus.$on('changecount',(n)=>{
				this.count+=n
			})
		}
	}
</script>

<style lang="scss">

</style>